package ooday02.animal;

import com.sun.org.apache.xpath.internal.operations.String;

public class SwimTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小黄",2,"黄");
        dog.eat();
        dog.drink();
        dog.swim();
        dog.lookHome();
        System.out.println();

        Chick chick = new Chick("小红",1,"红");
        chick.eat();
        chick.drink();
        chick.layEggs();
        System.out.println();

        Flsh flsh = new Flsh("小白",5,"白");
        flsh.eat();
        flsh.drink();
        flsh.swim();
        System.out.println();


    }

}
